.nav-search {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 20px;
    /*padding: 5px 15px;*/
    margin: 10px 0;
}

.search-input {
    border: none;
    background: none;
    outline: none;
    padding: 8px;
    width: 100%;
    font-size: 14px;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
}

.search-button:hover {
    opacity: 0.8;
}

.search-results {
    max-width: 1600px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.search-result-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.search-result-item:hover {
    transform: translateY(-2px);
}

.result-left {
    width: 100%;
    margin-bottom: 12px;
}

.result-cover {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
}

.result-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-result-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-brief {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.search-result-content {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.result-meta {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 11px;
    color: #999;
}

.result-source {
    color: #666;
    font-weight: 500;
    grid-column: 1 / -1;
}

/* 响应式布局 */
@media screen and (max-width: 1600px) {
    .search-results {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 1200px) {
    .search-results {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .search-results {
        grid-template-columns: 1fr;
    }
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
    grid-column: 1 / -1;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 15px;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.page-btn:hover:not([disabled]) {
    background-color: #f0f0f0;
    border-color: #999;
}

.page-btn[disabled] {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.page-info {
    color: #666;
    font-size: 14px;
} 